package com.todo.sight.infrastructure.repository;


import com.todo.sight.infrastructure.entity.po.PoiTypeRelationPO;

import java.util.List;

/**
 * (PoiTypeRelation)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 21:10:04
 */
public interface PoiTypeRelationRepository {

    /**
     * 新增POI类型关联
     *
     * @param poiTypeRelationPO
     * @return
     */
    Boolean insertPoiTypeRelationPO(PoiTypeRelationPO poiTypeRelationPO);

    /**
     * 删除POI类型关联
     *
     * @param id
     * @return
     */
    Boolean removePoiTypeRelationPOById(Long id);

    /**
     * 根据id查询POI类型关联
     *
     * @param id
     * @return
     */
    PoiTypeRelationPO queryPoiTypeRelationPOById(Long id);

    /**
     * 根据POIID查询关联列表
     *
     * @param poiId
     * @return
     */
    List<PoiTypeRelationPO> queryPoiTypeRelationListByPoi(Long poiId);

    /**
     * 根据bizId查询关联列表
     *
     * @param businessId
     * @return
     */
    List<PoiTypeRelationPO> queryPoiTypeRelationListByBizId(Long businessId);


}
